const runtime.heapAddrBits
14 uses
runtime (current package)
malloc.go#L212: heapAddrBits = (_64bit*(1-goarch.IsWasm)*(1-goos.IsIos*goarch.IsArm64))*48 + (1-_64bit+goarch.IsWasm)*(32-(goarch.IsMips+goarch.IsMipsle)) + 40*goos.IsIos*goarch.IsArm64
malloc.go#L219: maxAlloc = (1 << heapAddrBits) - (1-_64bit)*1
malloc.go#L284: arenaL2Bits = heapAddrBits - logHeapArenaBytes - arenaL1Bits
mpagealloc.go#L75: summaryL0Bits = heapAddrBits - logPallocChunkBytes - (summaryLevels-1)*summaryLevelBits
mpagealloc.go#L82: pallocChunksL2Bits = heapAddrBits - logPallocChunkBytes - pallocChunksL1Bits
mpagealloc_64bit.go#L49: heapAddrBits - summaryL0Bits,
mpagealloc_64bit.go#L50: heapAddrBits - summaryL0Bits - 1*summaryLevelBits,
mpagealloc_64bit.go#L51: heapAddrBits - summaryL0Bits - 2*summaryLevelBits,
mpagealloc_64bit.go#L52: heapAddrBits - summaryL0Bits - 3*summaryLevelBits,
mpagealloc_64bit.go#L53: heapAddrBits - summaryL0Bits - 4*summaryLevelBits,
mpagealloc_64bit.go#L75: entries := 1 << (heapAddrBits - shift)
mpagealloc_64bit.go#L252: n := uintptr(1<<heapAddrBits) / pallocChunkBytes
mranges.go#L117: maxOffAddr = offAddr{(((1 << heapAddrBits) - 1) + arenaBaseOffset) & uintptrMask}
stack.go#L164: free [heapAddrBits - pageShift]mSpanList // free lists by log_2(s.npages)
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |